/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.softwareprinciples.srp.obey.Impl;

import za.ac.cput.softwareprinciples.srp.obey.Disk;



/**
 *
 * @author Abduraghmaan
 */
public class DiskImplObey implements Disk {
    private String type;
    

    @Override
    public String getType() {
        return type;
    }

    @Override
    public void setType(String type) {
        this.type = type;
    }
    

    @Override
    public int determineSize()
    {
        int size = 0;
        
       if(type.equals("CD"))
           size = 700;
       else
           if(type.equals("DVD"))
               size = 4700;
       
       return size;
    }
    

    
}
